<?php
	function conectar()
	{
		$conexion = mysql_connect("localhost","root","");
		mysql_select_db("controlgastos1",$conexion);
		return $conexion;
	}
	function cerrarconexion($conexion)
	{
		mysql_close($conexion);
	}
?>